package com.example.forum.services;

import com.example.forum.model.ArticleReply;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IArticleReplyService {
    /**
     * date: 2024/09/16 16:53<br/>
     * Description: 新增帖子回复
     *
     * @param
     * @author: jmy <br/>
     */
    @Transactional
    int create(ArticleReply articleReply);

    /**
     * date: 2024/09/16 21:21<br/>
     * Description:
     * 根据帖子id查询所有的回复
     *
     * @author: jmy <br/>
     */
    List<ArticleReply> selectByArticleId(Long articleId);

}
